<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Modélisation_environnement_forestier Documentation:  Fichier source de GridFrame.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Généré par Doxygen 1.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&nbsp;des&nbsp;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&nbsp;de&nbsp;fichier</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>GridFrame.h</h1>  </div>
</div>
<div class="contents">
<a href="_grid_frame_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef GRIDFRAME_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define GRIDFRAME_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;<a class="code" href="_point_cloud_8h.html" title="Fichier contenant la déclaration de la classe PointCloud.">PointCloud.h</a>&quot;</span>
<a name="l00011"></a>00011 
<a name="l00012"></a><a class="code" href="class_grid_frame.html">00012</a> <span class="keyword">class </span><a class="code" href="class_grid_frame.html">GridFrame</a>
<a name="l00013"></a>00013 {
<a name="l00014"></a>00014         <span class="comment">/* \class GridFrame</span>
<a name="l00015"></a>00015 <span class="comment">         * \brief Une GrdiFrame est une case d&#39;une XYGrid. Elle est définie par deux points et le nuage de points qu&#39;elle contient.</span>
<a name="l00016"></a>00016 <span class="comment">         */</span>
<a name="l00017"></a><a class="code" href="class_grid_frame.html#a6f7f27d8faa0357285f21ed886a581bd">00017</a>         <span class="keyword">private</span> :
<a name="l00018"></a><a class="code" href="class_grid_frame.html#adb38f5d851ce33115b3b7100f3580878">00018</a> 
<a name="l00019"></a><a class="code" href="class_grid_frame.html#a486435a830fc2d391645755d73116d96">00019</a>         <a class="code" href="class_point.html">Point</a> <a class="code" href="class_grid_frame.html#a6f7f27d8faa0357285f21ed886a581bd">bot</a>;                      
<a name="l00020"></a>00020         <a class="code" href="class_point.html">Point</a> <a class="code" href="class_grid_frame.html#adb38f5d851ce33115b3b7100f3580878">top</a>;                      
<a name="l00021"></a>00021         <a class="code" href="class_point_cloud.html">PointCloud</a> <a class="code" href="class_grid_frame.html#a486435a830fc2d391645755d73116d96">cloud</a>;       
<a name="l00023"></a>00023         <span class="keyword">public</span> :
<a name="l00024"></a>00024 
<a name="l00030"></a>00030         <a class="code" href="class_grid_frame.html#ab5511e9afb7a070ac626e0d5e53418d6" title="Constructeur de la classe GridFrame.">GridFrame</a>();
<a name="l00031"></a>00031         
<a name="l00040"></a>00040         <a class="code" href="class_grid_frame.html#ab5511e9afb7a070ac626e0d5e53418d6" title="Constructeur de la classe GridFrame.">GridFrame</a>(<a class="code" href="class_point.html">Point</a> _bot, <a class="code" href="class_point.html">Point</a> _top);
<a name="l00041"></a>00041 
<a name="l00051"></a>00051         <a class="code" href="class_grid_frame.html#ab5511e9afb7a070ac626e0d5e53418d6" title="Constructeur de la classe GridFrame.">GridFrame</a>(<a class="code" href="class_point.html">Point</a> _bot, <a class="code" href="class_point.html">Point</a> _top, <a class="code" href="class_point_cloud.html">PointCloud</a> _cloud);
<a name="l00052"></a>00052         
<a name="l00060"></a>00060         <span class="keywordtype">int</span> <a class="code" href="class_grid_frame.html#a7f106f7bea3f1b1b840cacf95d3664ad" title="Renvoie la taille du nuage de points contenu dans la case.">getSizeOfCloud</a> ();
<a name="l00061"></a>00061         
<a name="l00069"></a>00069         <a class="code" href="class_point.html">Point</a> <a class="code" href="class_grid_frame.html#aadb972595f0762ec13837ea8f611d41a" title="Renvoie le point inferieur gauche de la case.">getBotPoint</a> ();
<a name="l00070"></a>00070         
<a name="l00078"></a>00078         <a class="code" href="class_point.html">Point</a> <a class="code" href="class_grid_frame.html#a2ca3df3e9082bc678d0c21f2302ea936" title="Renvoie le point superieur droit de la case.">getTopPoint</a> ();
<a name="l00079"></a>00079         
<a name="l00088"></a>00088         <span class="keywordtype">void</span> <a class="code" href="class_grid_frame.html#a0115d837b8be49f7231dbef2391936ce" title="Modificateur de la classe GridFrame.">setPointBot</a> ( <a class="code" href="class_point.html">Point</a> _p );
<a name="l00089"></a>00089         
<a name="l00098"></a>00098         <span class="keywordtype">void</span> <a class="code" href="class_grid_frame.html#a6773960e47b10bb2806734d62d76c846" title="Modificateur de la classe GridFrame.">setPointTop</a> ( <a class="code" href="class_point.html">Point</a> _p );
<a name="l00099"></a>00099         
<a name="l00107"></a>00107         <span class="keywordtype">float</span> <a class="code" href="class_grid_frame.html#adf92e03a5bc8e144625dc29e34b79ee2" title="Accede à la hauteur minimale du nuage de points de la case.">getZMin</a> ();
<a name="l00108"></a>00108         
<a name="l00116"></a>00116         <a class="code" href="class_point.html">Point</a> <a class="code" href="class_grid_frame.html#acdb1fa50797d37d8ae832cc97e3f00fe" title="Accede au point de hauteur minimale du nuage de points de la case.">getPointMin</a> ();
<a name="l00117"></a>00117         
<a name="l00126"></a>00126         <span class="keywordtype">void</span> <a class="code" href="class_grid_frame.html#a0da1549c6335330a105ab96ba12d93ea" title="Ajoute un point au nuage de point de la case.">addPointToCloud</a> ( <a class="code" href="class_point.html">Point</a> _p );
<a name="l00127"></a>00127         
<a name="l00135"></a>00135         <span class="keywordtype">void</span> <a class="code" href="class_grid_frame.html#a0bffdaaaf992656f29b80f7803bfb863" title="Affiche les bordures de la case de la grille à une hauteur souhaitée.">displayFrame</a> ( <span class="keywordtype">float</span> _z = 0.0);
<a name="l00136"></a>00136         
<a name="l00144"></a>00144         <span class="keywordtype">void</span> <a class="code" href="class_grid_frame.html#a4cba3c82a217069f41d974445dfa6a9a" title="Affiche la case de la grille comme un carré de couleur.">displayFrameColor</a> ();
<a name="l00145"></a>00145         
<a name="l00156"></a>00156         <span class="keywordtype">void</span> <a class="code" href="class_grid_frame.html#a4cba3c82a217069f41d974445dfa6a9a" title="Affiche la case de la grille comme un carré de couleur.">displayFrameColor</a> ( <span class="keywordtype">float</span> _z, <span class="keywordtype">float</span> _r, <span class="keywordtype">float</span> _g, <span class="keywordtype">float</span> _b );
<a name="l00157"></a>00157         
<a name="l00165"></a>00165         <span class="keywordtype">void</span> <a class="code" href="class_grid_frame.html#a145f0c7352ffbf8238ddeebdafe372e0" title="Affiche le nuage de points contenu dans la case.">displayCloud</a> ();
<a name="l00166"></a>00166         
<a name="l00174"></a>00174         <span class="keywordtype">void</span> <a class="code" href="class_grid_frame.html#a145f0c7352ffbf8238ddeebdafe372e0" title="Affiche le nuage de points contenu dans la case.">displayCloud</a> ( <span class="keywordtype">float</span> _r, <span class="keywordtype">float</span> _g, <span class="keywordtype">float</span> _b);
<a name="l00175"></a>00175         
<a name="l00183"></a>00183         <span class="keywordtype">void</span> <a class="code" href="class_grid_frame.html#aed755be617d78d28bd06c6184ae1d503" title="Affiche le nuage de points contenu dans la case et les bordures de la case.">display</a> ();
<a name="l00184"></a>00184         
<a name="l00195"></a>00195         <span class="keywordtype">void</span> <a class="code" href="class_grid_frame.html#a34c1be624cd1c67b5e9a1251bfcb9ea8" title="Seuille le nuage de points selon la hauteur de ceux ci.">keepPointsBetween</a>(<span class="keywordtype">float</span> _zMin, <span class="keywordtype">float</span> _zMax);
<a name="l00196"></a>00196         
<a name="l00206"></a>00206         <span class="keywordtype">void</span> <a class="code" href="class_grid_frame.html#a75bec82731e0b829f0eebaf66998c62d" title="Récupère l&amp;#39;ensemble des cercles à partir du nuage de points.">getCircles</a>(vector &lt;Circle&gt; &amp; _tabCircles);
<a name="l00207"></a>00207 
<a name="l00218"></a>00218         <span class="keywordtype">void</span> <a class="code" href="class_grid_frame.html#a75bec82731e0b829f0eebaf66998c62d" title="Récupère l&amp;#39;ensemble des cercles à partir du nuage de points.">getCircles</a>(<a class="code" href="class_hough_space.html">HoughSpace</a> &amp; _hs, <span class="keywordtype">float</span> _rMax);
<a name="l00219"></a>00219 
<a name="l00231"></a>00231         <span class="keywordtype">void</span> <a class="code" href="class_grid_frame.html#a75bec82731e0b829f0eebaf66998c62d" title="Récupère l&amp;#39;ensemble des cercles à partir du nuage de points.">getCircles</a>(<a class="code" href="class_hough_space.html">HoughSpace</a> &amp; _hs, <span class="keywordtype">float</span> _rMax, <span class="keywordtype">int</span> _coef);
<a name="l00232"></a>00232         
<a name="l00243"></a>00243         <span class="keywordtype">void</span> <a class="code" href="class_grid_frame.html#a403d5d99de49ff8aae61382d84071abf" title="Fait une coupe du nuage de points.">keepSlice</a> ( <span class="keywordtype">float</span> _bas, <span class="keywordtype">float</span> _haut );
<a name="l00244"></a>00244 
<a name="l00255"></a>00255         <span class="keywordtype">void</span> <a class="code" href="class_grid_frame.html#a403d5d99de49ff8aae61382d84071abf" title="Fait une coupe du nuage de points.">keepSlice</a> ( <span class="keywordtype">float</span> _bas, <span class="keywordtype">int</span> _nbPoints);
<a name="l00256"></a>00256         
<a name="l00268"></a>00268         <span class="keywordtype">void</span> <a class="code" href="class_grid_frame.html#a403d5d99de49ff8aae61382d84071abf" title="Fait une coupe du nuage de points.">keepSlice</a> ( <span class="keywordtype">float</span> _bas, <span class="keywordtype">float</span> _haut, <span class="keywordtype">int</span> _nbPoints);
<a name="l00269"></a>00269         
<a name="l00280"></a>00280         <a class="code" href="class_grid_frame.html">GridFrame</a> <a class="code" href="class_grid_frame.html#ae22d994c3f02e17c2a513e4b483d7d02" title="Crée une coupe du nuage de points.">getSlice</a> (<span class="keywordtype">float</span> _bas, <span class="keywordtype">float</span> _haut);
<a name="l00281"></a>00281         
<a name="l00292"></a>00292         <a class="code" href="class_grid_frame.html">GridFrame</a> <a class="code" href="class_grid_frame.html#ae22d994c3f02e17c2a513e4b483d7d02" title="Crée une coupe du nuage de points.">getSlice</a> ( <span class="keywordtype">float</span> _bas, <span class="keywordtype">int</span> _nbPoints );
<a name="l00293"></a>00293         
<a name="l00294"></a>00294         <a class="code" href="class_grid_frame.html">GridFrame</a> <a class="code" href="class_grid_frame.html#ae22d994c3f02e17c2a513e4b483d7d02" title="Crée une coupe du nuage de points.">getSlice</a> ( <span class="keywordtype">float</span> _bas, <span class="keywordtype">float</span> _haut, <span class="keywordtype">int</span> _nbPoints );
<a name="l00295"></a>00295         
<a name="l00303"></a>00303         <span class="keywordtype">void</span> <a class="code" href="class_grid_frame.html#a8a07b78838162d2f5b7dd9caa272423b" title="Ecrit le point bot.">printBot</a>();
<a name="l00304"></a>00304         
<a name="l00312"></a>00312         <span class="keywordtype">void</span> <a class="code" href="class_grid_frame.html#aebc23f0c278ce347b8e4dc00e5e91fae" title="Ecrit le point top.">printTop</a>();
<a name="l00313"></a>00313 
<a name="l00319"></a>00319         <span class="keywordtype">void</span> <a class="code" href="class_grid_frame.html#a8ccdcf224cb9f991eb06b89807fdfb9b" title="Trie les points du nuage de la case selon leur altitude.">Sort</a>();
<a name="l00320"></a>00320 };
<a name="l00321"></a>00321 
<a name="l00322"></a>00322 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Généré le Mon Feb 21 2011 18:18:15 pour Modélisation_environnement_forestier Documentation par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
